﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotClientApp.Server.Entity
{
    public class DeviceConfig
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        /// <summary>
        /// 设备Id
        /// </summary>
        [Comment("设备Id")]
        //[Required]
        public string DeviceId { get; set; }
        /// <summary>
        /// 配置项
        /// </summary>
        [Comment("配置项")]
        //[Required]
        public string Name { get; set; }
        /// <summary>
        /// 配置值
        /// </summary>
        [Comment("配置值")]
        public string? Value { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Comment("描述")]
        public string? Desc { get; set; }
        /// <summary>
        /// 枚举值
        /// </summary>
        public string? EnumInfo { get; set; }
    }
}
